package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.mingqijia.gassafety.db.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 报警策略审核表
 * </p>
 *
 * @author wanghai
 * @since 2022-06-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_gss_warn_strategy_check")
@ApiModel(value="WarnStrategyCheck对象", description="报警策略审核表")
public class WarnStrategyCheck extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "企业名称")
    @TableField("enterprise_name")
    private String enterpriseName;

    @ApiModelProperty(value = "策略名称")
    @TableField("rule_name")
    private String ruleName;

    @ApiModelProperty(value = "审核状态：0待审核 1审核不通过 2审核通过 3取消 ")
    @TableField("check_status")
    private Integer checkStatus;

    @ApiModelProperty(value = "提交人 ：账号")
    @TableField("submit_person_code")
    private String submitPersonCode;

    @ApiModelProperty(value = "提交人 ：用户名")
    @TableField("submit_person_name")
    private String submitPersonName;

    @ApiModelProperty(value = "提交人手机号")
    @TableField("submit_person_phone")
    private String submitPersonPhone;

    @ApiModelProperty(value = "审核人：账号")
    @TableField("check_person_code")
    private String checkPersonCode;

    @ApiModelProperty(value = "审核人：用户名")
    @TableField("check_person_name")
    private String checkPersonName;

    @ApiModelProperty(value = "申请时间")
    @TableField("application_time")
    private String applicationTime;

    @ApiModelProperty(value = "审核时间")
    @TableField("check_time")
    private String checkTime;

    @ApiModelProperty(value = "策略设备：0所有设备")
    @TableField("strategy_equipment")
    private Integer strategyEquipment;

    @ApiModelProperty(value = "策略对象：0所有客户 1按照行业选择 2按照客户选择")
    @TableField("strategy_obj")
    private Integer strategyObj;

    @ApiModelProperty(value = "行业或者客户数据：；号隔开")
    @TableField("strategy_obj_values")
    private String strategyObjValues;

    @ApiModelProperty(value = "低报值")
    @TableField("low_report")
    private String lowReport;

    @ApiModelProperty(value = "高报值")
    @TableField("high_report")
    private String highReport;

    @ApiModelProperty(value = "存储策略新增和编辑json体")
    @TableField("rule_json_data")
    private String ruleJsonData;

    @ApiModelProperty(value = "策略id，id存在为编辑，不存在为新增")
    @TableField("rule_id")
    private Long ruleId;

    @ApiModelProperty(value = "处理记录")
    @TableField("remark")
    private String remark;


}
